﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WOS.Logging
{
    public sealed class LogAttachmentInfo
    {
        #region Private Fields
        private readonly string name;
        private readonly string type;
        private string location;
        #endregion
        #region Constructors
        internal LogAttachmentInfo(string name, string type, string location)
        {
            this.name = name;
            this.type = type;
            this.location = location;
        }
        #endregion

        #region Public Members
        public string Name
        {
            get { return this.name; }
        }

        public string Type
        {
            get { return this.type; }
        }

        public string Location
        {
            get { return this.location; }
            internal set { this.location = String.Empty; }
        }

        public bool IsTypeSpecified()
        {
            return !String.IsNullOrEmpty(this.type);
        }
        #endregion
    }
}
